<template>
  <div class="part-notice">
    <div class="d_card">
      <div class="notice left">
        <div class="icon">
          <img src="../../../assets/dashboard/notice.png" />
        </div>
        <div class="content">为奥运喝彩，促人民健康。恒爱行动，至美之行！</div>
      </div>
      <!-- <div class="notice right">
        <div class="icon">
          <img src="../../../assets/dashboard/notice.png" />
        </div>
        <div class="content">
          <span ref="con"
            >【失物招领】前台捡到钥匙一串，请遗失的同学到带好身份证件去前台领取。请遗失的同学到带好身份证件去前台领取。</span
          >
        </div>
      </div> -->
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {
    console.log(this.$refs.con.clientWidth);
  }
};
</script>

<style lang="scss" scoped>
.part-notice {
  margin-bottom: 30px;
  .d_card {
    width: 100%;
    height: 80px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    .notice {
      display: flex;
      align-items: center;
      img {
        width: 38px;
        height: 31px;
        margin-right: 16px;
      }
      .content {
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
      }
    }
    .left {
      .content {
        width: 474px;
      }
    }
    .right {
      .content {
        width: 660px;
      }
    }
  }
}
</style>
